<?php

class tasktypeView extends View {

	function __construct(){
		parent::__construct();
	}

	public function showAddTaskType() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('tasktype/status_json.tpl');
		}
		else {
			$this->setTemplate('tasktype/status.tpl');
		}
			
		$this->show();
	}

	public function showGetTaskTypes() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('tasktype/get_json.tpl');
		}
		else {
			$this->setTemplate('tasktype/get.tpl');
		}
		$this->show();
	}

	public function showUpdateTaskType() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('tasktype/status_json.tpl');
		}
		else {
			$this->setTemplate('tasktype/status.tpl');
		}
		$this->show();
	}

	public function showDeleteTaskType() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('tasktype/status_json.tpl');
		}
		else {
			$this->setTemplate('tasktype/status.tpl');
		}
		$this->show();
	}
}
?>